function uniqueid_some_event (e)
 if e:HasString("string1") then
 end
 if e:HasString("string2") then
 end
end

if e:HasString("outside function...") then end